package com.tl.boot.common.enums;


/**
 * com.tl.boot.common -- ResultEnum
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/9/10 11:58
 */

public enum  ResultEnum {
    SUCCESS("0", "成功"),

    //系统异常
    SYSTEM_UNKNOWN("1001","系统未知异常(1001)"),
    SYSTEM_PRMISSION_DENIED("1002", "权限不足(1002)"),
    REQUEST_ILLEGAL("1003","非法的请求(1003)"),
    REQUEST_PARAM_ILLEGAL("1004", "请求参数错误(1004)"),

    //登录相关
    AUTH_NOTLOGIN("1101","没有登录或登录过期，请您重新登录(1101)"),
    AUTH_PWD_NOT_MATCH("1102","账号或密码错误，请重试(1102)"),
    AUTH_LOGIN_LIMIT("1103","登录失败次数超限，请联系管理员(1103)"),
    ;

    private String code;
    private String message;

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }}

